/*
 * @Author: hongbin
 * @Date: 2021-11-14 17:19:34
 * @LastEditors: hongbin
 * @LastEditTime: 2021-11-14 17:57:26
 * @Description:dvInfo context
 */

import { createContext, useContext } from "react";
import { DbInfo } from "../api/types";

// @ts-ignore
export const DBInfoContext = createContext<DbInfo>({});

export const useDBinfo = () => useContext(DBInfoContext);
